import {createStore,combineReducers,applyMiddleware} from "redux"
import {composeWithDevTools} from "redux-devtools-extension"
import thunk from "redux-thunk"
import home from "./modules/home"
import login from "./modules/login"
import register from "./modules/register"
import cate from './modules/cate'
import shop from "./modules/shop"

const reducer = combineReducers({
    home,
    login,
    register,
    cate,
    shop
})
const store=createStore(reducer,composeWithDevTools(applyMiddleware(thunk)))

export default store;